Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Open VSX switch, Part II #4319

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
GirlBossRush merged 2 commits into main from openvsx-switch
Nov 10, 2021
Merged

Open VSX switch, Part II #4319

GirlBossRush merged 2 commits into main from openvsx-switch
Nov 10, 2021

Conversation

Copy link
Contributor

@GirlBossRush GirlBossRush commented Oct 7, 2021
edited
Loading

This PR continues the work set in place by Oxy in #2659, migrating our default configuration extension marketplace to VSX. We’ve received reports of extensions refusing to install, or exhibiting odd behaviors. I believe this is one part due to outdated extensions in our marketplace, and another regarding Microsoft’s upstream changes to determine what makes an extension "web compatible."

See coder/vscode@5f00e79 for additional implementation details.

Closes #1473

benz0li, jsjoeio, code-asher, elgalu, and tibitTW reacted with hooray emoji benz0li, bpmct, and elgalu reacted with heart emoji
@GirlBossRush GirlBossRush added bug Something isn't working enhancement Some improvement that isn't a feature labels Oct 7, 2021
@GirlBossRush GirlBossRush requested a review from a team as a code owner October 7, 2021 07:49
Copy link

github-actions bot commented Oct 7, 2021
edited
Loading

✨ Coder.com for PR #4319 deployed! It will be updated on every commit.

Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is so exciting!!! 🎉

Great work @TeffenEllis 🚀

Requesting changes only to ask if you don't mind updating this reply from Ranger - it's a bot which auto-responds and closes issues labeled extension-request. I'm wondering if we should also remove the issue template and remove the bot response all together?

GirlBossRush reacted with thumbs up emoji
```bash
export SERVICE_URL=https://open-vsx.org/vscode/gallery
export ITEM_URL=https://open-vsx.org/vscode/item
export EXTENSIONS_GALLERY='{"serviceUrl": "https://extensions.coder.com/api"}'
Copy link
Member

@code-asher code-asher Oct 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still support SERVICE_URL and ITEM_URL or is this a breaking change?

Copy link
Member

@code-asher code-asher Oct 7, 2021
edited
Loading

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nvm, saw the implementation, we may want to make a note in the changelog so we remember to update the enterprise product 📓 (or maybe we can use the old vars as fallbacks)

GirlBossRush reacted with thumbs up emoji jsjoeio reacted with eyes emoji
Copy link
Contributor Author

@GirlBossRush GirlBossRush Oct 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, the two env’s have been replaced with the single EXTENSIONS_GALLERY as Microsoft upstream is now defining several keys we’d need to override. IMO, the empty env ITEM_URL= code-server ... also had some tricky ergonomics.

jsjoeio and code-asher reacted with thumbs up emoji
Copy link
Contributor

jsjoeio commented Oct 7, 2021

I think we need to fix this failing unit test. I was going to use .toMatch but got lazy because that takes a regex I think and I forgot to add it in.

 くろまる /_static  disabled authentication  should return a 404 when a file is not provided
 expect(received).toContain(expected) // indexOf
 Expected substring: "not found"
 Received string: "Not Found"
 45 | 
 46 | const content = await resp.json()
 > 47 | expect(content.error).toContain(NOT_FOUND.message)
 | ^
 48 | })
GirlBossRush reacted with thumbs up emoji

Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

All looks good! Only putting "Request changes" to make sure we fix that unit test before approving and merging

Comment on lines 16 to 23
export interface ClientConfiguration {
codeServerVersion: string
base: string
csStaticBase: string
}
Copy link
Contributor

@jsjoeio jsjoeio Oct 7, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah-HA! My PR for the e2e test fix needed this!

Copy link

codecov bot commented Oct 8, 2021
edited
Loading

Codecov Report

Merging #4319 (e7712cc) into main (1b60ef4) will not change coverage.
The diff coverage is n/a.

❗ Current head e7712cc differs from pull request most recent head 4ca05c2. Consider uploading reports for the commit 4ca05c2 to get more accurate results
Impacted file tree graph

@@ Coverage Diff @@
## main #4319 +/- ##
=======================================
 Coverage 66.46% 66.46% 
=======================================
 Files 30 30 
 Lines 1625 1625 
 Branches 330 330 
=======================================
 Hits 1080 1080 
 Misses 463 463 
 Partials 82 82 

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 1b60ef4...4ca05c2. Read the comment docs.

Copy link
Contributor

@jsjoeio jsjoeio left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM! 👍

(P.S. automerge may not work - at least it hasn't been working for me)

Copy link
Contributor

jsjoeio commented Oct 29, 2021

If we fix the conflicts, is this ready to be merged?

Copy link
Contributor Author

@jsjoeio this can likely be rebased when #4414 is merged, which will include VSX due to version incompatibilities in our previous marketplace

jsjoeio reacted with thumbs up emoji

@GirlBossRush GirlBossRush added the blocked This issue cannot proceed due to external factors label Oct 30, 2021
Akash Satheesan and others added 2 commits November 10, 2021 09:18
- Remove extension related github configs.
- Update tests to reflect new upstream behavior.
auto-merge was automatically disabled November 10, 2021 14:44

Rebase merges are not allowed on this repository

@GirlBossRush GirlBossRush removed the blocked This issue cannot proceed due to external factors label Nov 10, 2021
@GirlBossRush GirlBossRush deleted the openvsx-switch branch November 10, 2021 15:01
@jsjoeio jsjoeio mentioned this pull request Nov 29, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Reviewers

@code-asher code-asher code-asher approved these changes

+1 more reviewer

@jsjoeio jsjoeio jsjoeio approved these changes

Reviewers whose approvals may not affect merge requirements
Labels
bug Something isn't working enhancement Some improvement that isn't a feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Integrate with open-vsx.org

AltStyle によって変換されたページ (->オリジナル) /